Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

158
Views
I was reading my bootstrap.min.js and I can't understanding what this line actually doing here [f = e.attr("data-target");f||(f = e.attr("href")]
function a(e){..........}
var e = a(this);  
var f = e.attr("data-target");f||(f = e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));

what this line actually doing here f||(f = e.attr("href"), I don't think it is only saying "true" or "false" if it is shorthand notation then pzl.. explain

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

This means that there is some link in data-target attribute's value, If it is not there then It will replace the href attibute's value accoding to the regex pattern.

about 4 years ago · Juan Pablo Isaza Report

0

This is a packaged library files, that means all its variables functions are renamed with 1 letter or 2 to optimize the code for compilers

Also alot of instruction are shortened so much, line breacks & spaces are removed

So no human can understand this kind of code without wasting much efforts

If you'd really like to read a library's code, just visit its github repo, or read the non-optimized files , like bootstrap.js not the bootstrap.min.js

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!